package practice;

import java.io.FileInputStream;
import java.io.IOException;

public class Text07 {
    public static void main(String[] args) throws IOException {
        String a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklnmopqrstuvwxyz";
        for (int b=0;b<a.length();b++){
            char name=a.charAt(b);
            int  s=0,num;
            FileInputStream fis=new FileInputStream("calcCharNum.txt");
            while ((num=fis.read())!=-1){
                char word=(char) num;
                if(name==word){
                    s+=1;
                }
            }
            System.out.println(name+":"+s);
        }
    }
}
